import { Router, Request, Response } from "express";

const router = Router()



router.post('/login', (req: Request, res: Response) => {
  res.json({
    code: 0,
    data: {
      token: '1234567'
    },
    message: '登录成功',
  })
})
router.get('/userinfo', (req: Request, res: Response) => {
  res.json({
    code: 0,
    data: {
      username: 'zhangbo',
      age: 29,
      permission:[]
    },
    message: '登录成功',
  })
})


export default router;